<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta name="referrer" content="no-referrer">
    <th:block th:include="include :: header('用户详细')"/>
    <th:block th:include="include :: editormd-css"/>
</head>
<body>
<div class="main-content">
    <div class="form-horizontal" th:object="${md}">
        <div id="editormd-html" style="width: 90%;padding-left: 5%">
            <textarea style="display: none" name="test-editormd-markdown-doc" th:text="*{content}"></textarea>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: editormd-js"/>
<script>
    var editor;
    $(function () {
        editor = editormd.markdownToHTML("editormd-html", {
            htmlDecode: "style, script, iframe",
            emoji: true,
            taskList: true,
            tex: true,  // 默认不解析
            flowChart: true,  // 默认不解析
            sequenceDiagram: true,  // 默认不解析
        });
    })
</script>
</body>
</html>